#__auter:王梦丽
from django import template
import datetime

register = template.Library()
def time(create_time):
    return create_time.strftime('%F')
register.filter('filter_time',time)

def phone_hidden(phone):
    p = phone[0:3]+'****'+phone[7:]
    return p
register.filter('hidden', phone_hidden)